home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / Developer Essentials Jul 90 / Programming / MPW Interfaces & Libraries 3.1 / CIncludes / CursorCtl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1989-10-13  |  1.5 KB  |  58 lines  |  [TEXT/MPS ]

  1. /************************************************************
  2.  
  3. Created: Thursday, September 7, 1989 at 9:11 PM
  4.     CursorCtl.h
  5.     C Interface to the Macintosh Libraries
  6.  
  7.  
  8.     
  9.     <<< CursorCtl - Cursor Control Header File >>>
  10.     
  11.     Copyright Apple Computer, Inc. 1985-1989
  12.     All rights reserved
  13.     
  14.     This file contains:
  15.     
  16.     InitCursorCtl(newCursors) - Init CursorCtl to load the 'acur' resource
  17.     RotateCursor(counter)      - Sequence through cursor frames for counter mod 32
  18.     SpinCursor(increment)      - Sequence mod 32 incrementing internal counter
  19.     Hide_Cursor()              - Hide the current cursor
  20.     Show_Cursor(cursorKind)   - Show the cursor
  21.  
  22. ************************************************************/
  23.  
  24.  
  25. #ifndef __CURSORCTL__
  26. #define __CURSORCTL__
  27.  
  28. enum {HIDDEN_CURSOR,I_BEAM_CURSOR,CROSS_CURSOR,PLUS_CURSOR,WATCH_CURSOR,
  29.     ARROW_CURSOR};
  30. typedef unsigned char Cursors;
  31.  
  32. struct Acur {
  33.     short n;        /*Number of cursors ("frames of film")*/
  34.     short index;    /* Next frame to show <for internal use>*/
  35.     short frame1;    /*'CURS' resource id for frame #1*/
  36.     short fill1;    /*<for internal use>*/
  37.     short frame2;    /*'CURS' resource id for frame #2*/
  38.     short fill2;    /*<for internal use>*/
  39.     short frameN;    /*'CURS' resource id for frame #N*/
  40.     short fillN;    /*<for internal use>*/
  41. };
  42.  
  43. typedef struct Acur acur,*acurPtr,**acurHandle;
  44.  
  45. #ifdef __cplusplus
  46. extern "C" {
  47. #endif
  48. pascal void InitCursorCtl(acurHandle newCursors);
  49. pascal void RotateCursor(long counter); 
  50. pascal void SpinCursor(short increment);
  51. pascal void Hide_Cursor(void);
  52. pascal void Show_Cursor(Cursors cursorKind);
  53. #ifdef __cplusplus
  54. }
  55. #endif
  56.  
  57. #endif
  58.